package net.qhzw.vip.qiyu.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.qhzw.vip.qiyu.entity.GuaranteeCompany;
import net.qhzw.vip.qiyu.model.GuaranteeCompanyUserVo;

public interface GuaranteeCompanyService extends IService<GuaranteeCompany> {


    /***
     * 添加站点公司
     * @param guaranteeCompany
     * @return
     */
    boolean addGuaranteeCompany(GuaranteeCompany guaranteeCompany);

    /***
     * 根据ID查询担保公司名称
     * @param companyId
     * @return
     */
    String getNameById(Long companyId);

    Page<GuaranteeCompany> findByPage(Page<GuaranteeCompany> page, Long shopId, String name, Byte status);

    /***
     * 根据用户id查询担保公司
     * @param userId
     * @param status
     * @return
     */
    GuaranteeCompanyUserVo getGuaranteeCompanyByUserId(Long userId, Byte status);


    /***
     * 根据用户id查询担保公司
     * @param userId
     * @return
     */
    String getNameByUserId(Long userId);
}
